home *** CD-ROM | disk | FTP | other *** search
- Subject: Re: Getting my facet from within ::DoCharKey
- Sent: 6/11/96 11:42 AM
- Received: 6/11/96 12:01 PM
- From: Henri Lamiraux, lamiraux@apple.com
- Reply-To: ODF Interest, ODF-Interest@CILabs.ORG
- To: OpenDoc Development Framework Discussion List, ODF-Interest@CILabs.
-
- >I need to get my facet from within the ::DoCharKey method of my View so
- >that I can set up a "FW_CViewContext" for rendering.
- >
- >What's the best way to do it?
- >
- >Is there an easier way than grabbing my frame and iterating to it's first
- >facet?
- >
- >-Neal
-
- Key events don't have a facet but just a frame. Your are supposed to
- update all your frames' facets. If you don't want to do that every key
- you can call FW_CFrame::GetActiveFacet which is the last facet the user
- clicked in. Be careful that GetActiveFacet can return NULL. You can also
- ask for the first facet of your frame (which can also be NULL).
-
- ........................................................................
- Henri Lamiraux lamiraux@apple.com
- Apple Computer, Inc. OpenDoc(tm) Development Framework
- ........................................................................
-
-